package com.business.systemmanage;

import com.spring4all.swagger.EnableSwagger2Doc;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
@MapperScan("com.business.systemmanage.mapper")
@EnableSwagger2Doc
public class SystemmanageApplication  extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(SystemmanageApplication.class, args);
	}

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application){
		System.out.println("外部tomcat,chapter启动!");
		return application.sources(SystemmanageApplication.class);
	}

}
